package cn.iocoder.an.module.business.controller.admin.warningconfig.vo;

import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 预警配置新增/修改 Request VO")
@Data
public class WarningConfigSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27926")
    private Long id;

    @Schema(description = "预警(天数)", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "预警(天数)不能为空")
    private Integer warningDays;

    @Schema(description = "预警等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "预警等级不能为空")
    private Integer warningLevel;

    @Schema(description = "预警颜色")
    private String warningColor;

    @Schema(description = "预警消息接收人ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<Long>  warningUser;

    @Schema(description = "预警消息接收人", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("预警消息接收人")
    private String warningUserName;

    @Schema(description = "预警类型,1是设备保养预警，2是设备点检预警", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer warningType;

}